package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.GreenhouseGasTypeMapper;
import com.isdepci.project.result.domain.GreenhouseGasType;
import com.isdepci.project.result.service.IGreenhouseGasTypeService;

/**
 * 范围1分类(按照温室气体类型）Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class GreenhouseGasTypeServiceImpl implements IGreenhouseGasTypeService
{
    @Autowired
    private GreenhouseGasTypeMapper greenhouseGasTypeMapper;

    /**
     * 查询范围1分类(按照温室气体类型）
     */
    @Override
    public GreenhouseGasType selectGreenhouseGasTypeById(Long id)
    {
        return greenhouseGasTypeMapper.selectGreenhouseGasTypeById(id);
    }

    /**
     * 查询范围1分类(按照温室气体类型）列表
     */
    @Override
    public List<GreenhouseGasType> selectGreenhouseGasTypeList(GreenhouseGasType greenhouseGasType)
    {
        return greenhouseGasTypeMapper.selectGreenhouseGasTypeList(greenhouseGasType);
    }

    /**
     * 新增范围1分类(按照温室气体类型）
     */
    @Override
    public int insertGreenhouseGasType(GreenhouseGasType greenhouseGasType)
    {
        return greenhouseGasTypeMapper.insertGreenhouseGasType(greenhouseGasType);
    }

    /**
     * 修改范围1分类(按照温室气体类型）
     */
    @Override
    public int updateGreenhouseGasType(GreenhouseGasType greenhouseGasType)
    {
        return greenhouseGasTypeMapper.updateGreenhouseGasType(greenhouseGasType);
    }

    /**
     * 批量删除范围1分类(按照温室气体类型）
     */
    @Override
    public int deleteGreenhouseGasTypeByIds(Long[] ids)
    {
        return greenhouseGasTypeMapper.deleteGreenhouseGasTypeByIds(ids);
    }

    /**
     * 删除范围1分类(按照温室气体类型）信息
     */
    @Override
    public int deleteGreenhouseGasTypeById(Long id)
    {
        return greenhouseGasTypeMapper.deleteGreenhouseGasTypeById(id);
    }
}
